package com.woniuxy.service.Impl;

import com.woniuxy.dao.ContractDao;
import com.woniuxy.entity.BeforeQueryData;
import com.woniuxy.entity.UserApplyInfo;
import com.woniuxy.service.ContractService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Lawrence Z
 */
@Service
public class ContractServiceImpl implements ContractService {
    @Resource
    ContractDao contractDao;

    /**
     *
     * @return 合同列表
     */
    @Override

    public List<UserApplyInfo> contractList() {
        List<UserApplyInfo>list = contractDao.contractList();
        System.err.println("打印列表:"+list);
        return list;
    }

    /**
     *
     * @param datas
     * @return 搜索结果
     */
    @Override
    public List<UserApplyInfo> contractSearch(BeforeQueryData datas) {
        List<UserApplyInfo>searchList = contractDao.contractSearch(datas);
        System.err.println("打印查询列表："+datas);
        return searchList;
    }
}
